import Vue from 'vue'
import App from './App'
import store from './store'
import uView from '@/uni_modules/uview-ui'
import untCon from '@/core/app'
import registerComponents from './components/index.js'
import untTs from '@/uni_modules/unt-ts'
import mixin from './core/mixins/app'
import bootstrap from './core/bootstrap'
// 组件注册 start
Vue.use(registerComponents);
// 组件注册 end
// unt-ts start
Vue.use(untTs)
// unt-ts end
// 载入uView库
Vue.use(uView)
// 全局mixin
Vue.mixin(mixin)
// 挂载全局函数
Vue.prototype.$unts = untCon
Vue.prototype.$store = store

// 实例化应用
const app = new Vue({
	...App,
	store,
	created: bootstrap
})
app.$mount()